<div class="clear"></div>
	<div id="shareCover" class="share" onclick="document.getElementById('shareCover').style.display='none';">
		<table>
			<tr>
				<td colspan="2"  style="text-align:right;">
					<img src="/js/images/share_1.png" style="width:120px!important;" />
					<img src="/js/images/share_2.png" style="width:30px!important;" />
				</td>
			</tr>
			<tr>
				<td style="width:50%;">
					<img src="/js/images/share_4.png" />
					<div>发送给朋友</div>
				</td>
				<td>
					<img src="/js/images/share_3.png" />
					<div>分享到朋友圈</div>
				</td>
			</tr>
		</table>
	</div>
<?php
if ($fupid==24){$ishide_foot=1;
?>
<div class="foot">
<ul>
	<li><a href="/article.php?id=45"><i></i><img src="/images/t3.png" width="26" height="26" /><h1>心情调味</h1></a></li>
	<li style="position:relative;">
	<a href="/article.php?id=46"><i></i><img src="/images/t4.png" width="26" height="26" /><h1>励志成功</h1></a>
	</li>
	<li><a href="/article.php?id=47"><i></i><img src="/images/t1.png" width="26" height="26" /><h1>名人百科</h1></a></li>
	<li><a href="/article.php?id=48"><i></i><img src="/images/t2.png" width="26" height="26" /><h1>各行各业</h1></a></li>
	<li><a href="/my.php"><i></i><img src="/images/t5.png" width="26" height="26" /><h1>我的阅读</h1></a></li>
</ul>
</div>
<?php
}

if ($ishide_foot!=1){
?>
<div class="foot">
<ul>
	<li><a href="/"><i></i><img src="/images/foot_7.png" width="26" height="26" /><h1>首页</h1></a></li>
	<li style="position:relative;">
	<?php $brs=$db->excu("select * from mx_vpp_articleclass where class='2' and fup='24' order by list asc,fid asc");
	if ($db->num_rows($brs)>0){
	?>
	<a href="javascript:" onclick="$('#menu_font').toggleClass('hidden');"><i></i><img src="/images/foot_2.png" width="26" height="26" /><h1>推广中心</h1></a>
	<ul id="menu_font" class="menu_font hidden" onClick="$('#menu_font').addClass('hidden');">
	<?php
		while ($brsdb=$db->fetch_array($brs)){
	?>
	<li><a href="/article.php?id=<?php echo $brsdb["fid"]?>&fromwxopenid=<?php echo $wxmxopenid;?>" class="icon-home" onclick="$('#menu_font').addClass('hidden');"><?php echo $brsdb["name"]?></a></li>
	<?php
		}
	?>
	</ul>
	<?php
	}
	else{
	?>
	<a href="/article.php?id=24&fromwxopenid=<?php echo $wxmxopenid;?>"><i></i><img src="/images/foot_2.png" width="26" height="26" /><h1>推广中心</h1></a>
	<?php
	}
	?>
	</li>
	<li><a href="http://map.baidu.com/mobile/webapp/search/search/qt=inf&uid=2b6563f6eaacd423260bd00f/vt=map?dgr=2&third_party=aladdin#search/search/qt=inf&uid=2b6563f6eaacd423260bd00f&searchFlag=aladdin&c=288/vt=map&i=0&from=singlemessage&isappinstalled=0"><i></i><img src="/images/foot_3.png" width="26" height="26" /><h1>地理位置</h1></a></li>
	<li><a href="/about.php?wref=mp.weixin.qq.com"><i></i><img src="/images/foot_8.png" width="26" height="26" /><h1>关于我们</h1></a></li>
	<li><a href="javascript:shareCover_show();"><i></i><img src="/images/foot_6.png" width="26" height="26" /><h1>分享</h1></a></li>
</ul>
</div>
<?php }?>
<script>
function shareCover_show(){
document.getElementById('shareCover').style.display='block';
}
</script>
<?php if ($fenxiang_hide!=1){?>
	<div id="mcover" onClick="document.getElementById('mcover').style.display='';" style="display:none;">
		<img src="/js/images/guide.png">
	</div>
	<div class="more" id="pagemore" style=" margin-bottom:10px; margin-top:10px;"><a href="weixin://contacts/profile/mxsoft">点击关注<?php echo $webdb["vpp_jigoucode"]?></a></div>
	<div class="text" id="content">
		<div id="mess_share">
			<div id="share_1">
				<button class="button2" onClick="document.getElementById('mcover').style.display='block';">
					<img src="/js/images/icon_msg.png">&nbsp;发送给朋友
				</button>
			</div>
			<div id="share_2">
				<button class="button2" onClick="document.getElementById('mcover').style.display='block';">
					<img src="/js/images/icon_timeline.png">&nbsp;分享到朋友圈
				</button>
			</div>
			<div class="clr"></div>
		</div>
	</div>
<?php }
if ($fenxiang_jshide!=1){
?>
<script type="text/javascript">
		document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        window.shareData = {  
           "imgUrl": "<?php if (trim($webdb[weixinlogo])!=""){echo get_photourl($webdb[weixinlogo]);}?>", 
            "timeLineLink": "<?php echo $WEBURL;?>",
            "sendFriendLink": "<?php echo $WEBURL;?>",
            "weiboLink": "<?php echo $WEBURL;?>",
            "tTitle": "<?php echo $web_title?>",
            "tContent": "<?php echo $webdb["vpp_jigoucode"]."—".$web_title?>",
            "fTitle": "<?php echo $web_title?>",
            "fContent": "<?php echo $webdb["vpp_jigoucode"]."—".$web_title?>",
            "wContent": "<?php echo $webdb["vpp_jigoucode"]."—".$web_title?>" 
        };
        // 发送给好友
        WeixinJSBridge.on('menu:share:appmessage', function (argv) {
            WeixinJSBridge.invoke('sendAppMessage', { 
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.sendFriendLink,
                "desc": window.shareData.fContent,
                "title": window.shareData.fTitle
            }, function (res) {
                _report('send_msg', res.err_msg);
            })
        });

        // 分享到朋友圈
        WeixinJSBridge.on('menu:share:timeline', function (argv) {
            WeixinJSBridge.invoke('shareTimeline', {
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.timeLineLink,
                "desc": window.shareData.tContent,
                "title": window.shareData.tTitle
            }, function (res) {
                _report('timeline', res.err_msg);
            });
        });

        // 分享到微博
        WeixinJSBridge.on('menu:share:weibo', function (argv) {
            WeixinJSBridge.invoke('shareWeibo', {
                "content": window.shareData.wContent,
                "url": window.shareData.weiboLink,
            }, function (res) {
                _report('weibo', res.err_msg);
            });
        });
        }, false)
</script>
<?php }
if (trim($_COOKIE["mxadminwx"]["wxmxopenid"])!=""){
	if (!is_array($vpp_user_info)){$vpp_user_info=$db->getinfo("select * from mx_user where weixinid='$wxmxopenid' limit 1");}
	if (is_array($vpp_user_info)){
		//if(date("Y-m-d",strtotime($vpp_user_info["lastlogintime"]))!=date("Y-m-d")){
			//判断是否当天第一次登陆
			$db->excu("update mx_user set logindays=logindays+1,logintimes=logintimes+1,lastlogintime='".date("Y-m-d H:i:s")."' where id='$vpp_user_info[id]'");
//		}
//		elseif (time()-strtotime($vpp_user_info["lastlogintime"])>=1800){
//			//只更新最后坐标
//			$db->excu("update mx_user set lastlogintime='".date("Y-m-d H:i:s")."' where id='$vpp_user_info[id]'");
//		}
	}
}
?>
<div style="display:none"><script language="javascript" src="http://count35.51yes.com/click.aspx?id=358390026&logo=1" charset="gb2312"></script></div>
